package com.zyn.rsgl.mapper;

import com.zyn.rsgl.pojo.Salary;
import com.baomidou.mybatisplus.core.mapper.BaseMapper;
import org.apache.ibatis.annotations.Mapper;
import org.apache.ibatis.annotations.Param;
import org.apache.ibatis.annotations.Select;

/**
 * <p>
 * 薪资表 Mapper 接口
 * </p>
 *
 * @author zcs
 * @since 2025-02-10
 */
@Mapper
public interface SalaryMapper extends BaseMapper<Salary> {
    @Select("select * from salary where user_id=#{userId}" )
    Salary getByUserId(@Param("userId")String userId);
}
